<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.tree.search.js"
    type="text/javascript"></script>
<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}"
    rel="stylesheet" type="text/css">
<style type="text/css">
.tabs .tabsContent {
    background: #ffffff;
    border-color: #B8D0D6;
}

.alt {
    display: block;
    overflow: hidden;
    position: absolute;
    line-height: 20px;
}
</style>
<script type="text/javascript">
	$(function() {
		$("#searchTree", navTab.getCurrentPanel()).baseTreeSearch({
			inputTextId : "#searchProcessService", //搜索框的id
			alertMsg : "<@label key='treeSearchContent.D'>请输入内容再查找</@label>", //提示内容，要考虑国际化，传自后台
			$p : navTab.getCurrentPanel()
		});
	})
	function grantServicesDone(modelId) {
		if (modelId && modelId != null) {
			var url = "${rc.getContextPath()}/manage/service/getProcessServiceList?modelId="
					+ modelId + "&navTabId=${navTabId!''}";
			$("div#serviceList", navTab.getCurrentPanel()).loadUrl(url, null,
					function() {
						$("div#serviceList").find("[layoutH]").layoutH();
					});
			$.pdialog.closeCurrent();
		}
	}
	function rmServiceAjaxDone(modelId) {
		if (modelId && modelId != null) {
			var url = "${rc.getContextPath()}/manage/service/getProcessServiceList?modelId="
					+ modelId + "&navTabId=${navTabId!''}";
			$("div#serviceList", navTab.getCurrentPanel()).loadUrl(url, null,
					function() {
						$("div#serviceList").find("[layoutH]").layoutH();
					});
		}
	}
</script>
<div>
    <div class="pageContent ">
        <div>
            <div id="modeltree" class="treeleft">
                <div class="mini-toolbar">
                    <input type="text" id="searchProcessService" /> <a
                        class="buttonActive" href="javascript:void(0)" id="searchTree"><span><@label
                            key='search.B'>搜索</@label></span></a>
                </div>
                <div layoutH="40">
                    <ul class="tree treeFolder expand">
                        <#if processModel??><#list processModel as pmc>
                        <li><a name="${pmc.name!''}">${pmc.name!''}</a> <#if
                            pmc.processModel??>
                            <ul>
                                <#list pmc.processModel as pm>
                                <li><a id="${pm.id!''}" name="${pm.name!''}"
                                    href="${rc.getContextPath()}/manage/service/getProcessServiceList?modelId=${pm.id!''}&navTabId=${navTabId!''}"
                                    target="ajax" rel="serviceList">${pm.name!''}</a></li>
                                </#list>
                            </ul> </#if></li> </#list> </#if>
                    </ul>
                </div>
            </div>
            <div id="serviceList" class="unitBox" layoutH="10" style="margin-left: 280px;">
                <div style="padding: 10px;">
                    <div class="treeTip"><@label
                        key="treeTips.M">请点击左侧树形菜单进行相关操作</@label></div>
                </div>
            </div>
        </div>

    </div>
</div>

